import React, { Component } from 'react'
import { connect } from 'react-redux'
import  {changeflag} from  "../action/flagaction"

export class Goods extends Component<any,any> {
    componentDidMount(){
        this.props.changeflag(false);
    }
  render() {
    return (
      <div>Goods</div>
    )
  }
  componentWillUnmount(){
      this.props.changeflag(true);
  }
}

const mapStateToProps = (state:any) => ({})

const mapDispatchToProps = {
  changeflag
}

export default connect(mapStateToProps, mapDispatchToProps)(Goods)